// import { resolve } from 'path'
import type { Resolver } from 'unplugin-auto-import/types'
import { dirResolver } from 'vite-auto-import-resolvers'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'


type Arrayable<T> = T | Array<T>
type Resolvers = Arrayable<Arrayable<Resolver>>

export const AutoImportResolvers = ():Resolvers => ([
	ElementPlusResolver(),
	dirResolver({ prefix: 'use' }),
	// dirResolver({
	// 	target: resolve(__dirname, '../../src/store'),
	// 	suffix: 'Store',
	// }),
	// dirResolver({
	// 	target: resolve(__dirname, '../../src/api/modules'),
	// })
])
